Adapt emba integration (don't merge)
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 8 Jun 2025 12:47:26 +0000 (14:47 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 8 Jun 2025 12:47:26 +0000 (14:47 +0200)
* test/infra/Dockerfile.emba (emacs-inotify): Don't install clangd.

* test/infra/gitlab-ci.yml (.job-template): Make actions in
after_script more robust.

test/infra/Dockerfile.emba
test/infra/gitlab-ci.yml

index 8c6641b19b9904932d0e7ced2418dc7c86dc76af..4c46193c555c5be5a544bdd5caf5923ee995c7aa 100644 (file)
@@ -34,10 +34,9 @@ RUN apt-get update && \
 
 FROM emacs-base as emacs-inotify
 
-# We install clangd for Eglot tests.
 RUN apt-get update && \
     apt-get install -y --no-install-recommends -o=Dpkg::Use-Pty=0 \
-      inotify-tools clangd \
+      inotify-tools \
     && rm -rf /var/lib/apt/lists/*
 
 COPY . /checkout
index 2b443d14c246d2610598b11abc1cf21fd42ae95b..0d7d31c3fdd8202bf2bb2d52d7d19a13d9925c73 100644 (file)
@@ -93,9 +93,9 @@ default:
     - test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
     - test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/config.log ${test_name} || true
     - test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
-    - find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
+    - test -d ${test_name} && find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
     # BusyBox find does not know -empty.
-    - find ${test_name} -type d -depth -exec rmdir {} + 2>/dev/null
+    - test -d ${test_name} && find ${test_name} -type d -depth -exec rmdir {} + 2>/dev/null
 
 .build-template:
   needs: []